﻿using Common.Model;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace Bussiness.Interface
{
    public interface IListInforService : IBaseService
    {
        /// <summary>
        /// 分页查询返回LayuiJson数据
        /// </summary>
        /// <typeparam name="T">泛型参数</typeparam>
        /// <param name="page">第几页</param>
        /// <param name="limit">每页最大数量</param>
        /// <param name="expreesions">表达式数组</param>
        /// <returns></returns>
        LayuiJson<T> ListInfor<T>(int page, int limit, params Expression<Func<T, bool>>[] expreesions) where T : class;
  
        /// <summary>
        /// 获取所有TOut类型的集合
        /// </summary>
        /// <typeparam name="TIn"></typeparam>
        /// <typeparam name="TOut"></typeparam>
        /// <returns></returns>
        List<TOut> List<TIn, TOut>() where TIn : class
            where TOut : class;
    }
}
